package com.example.rubbish.Utils;


import com.google.common.hash.Hashing;

import java.nio.charset.Charset;

public class keyHelper {
    private static String sign;
    private static long timestamp;
    //垃圾回收识别api
    private static final String secretKey="3589a27824a566b38b0155d99444a245";
    private static final String appKey="11ff9073896deeefbe334e9f80d73b2c"   ;
    //热搜api
    private static final String hotKey="176497f7a16fa7c9f2262b5cf0ed6845";


    public  static long getTimestamp(){
        timestamp = System.currentTimeMillis();
        return timestamp;
    }

    public static String getSign( long timestamp){
        sign= Hashing.md5().hashString(secretKey+timestamp, Charset.forName("UTF-8")).toString();
        return sign;
    }
    public static String getAppKey() {
        return appKey;
    }

    public static String getHotKey() {
        return hotKey;
    }
}
